﻿using Shop.RemoteModel.Goods;
using Shop.RemoteModel.Goods.Model;
using Shop.Service.Interface;
using WeDonekRpc.Client.Interface;

namespace Shop.Service.RpcEvent
{
    internal class GoodsDetailedEvent : IRpcApiService
    {
        private readonly IGoodsDetailedService _Service;

        public GoodsDetailedEvent (IGoodsDetailedService service)
        {
            this._Service = service;
        }

        public GoodsDetailed GetGoodsDetailed (GetGoodsDetailed obj)
        {
            return this._Service.Get(obj.Id);
        }
    }
}
